<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>导入</title>
	<script src="${contextPath}/scripts/scriptvalidator.js" type="text/javascript"></script>
	<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
		<link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
	    </span>系统管理&gt;&gt;协议管理&gt;&gt;协议导入
    </div>
    <div id="loading" style="display:none;position:absolute;left:0;width:100%;height:800px;top:0;background:#E0ECFF;opacity:0.8;filter:alpha(opacity=80);">
	<div id="loading2" style="position:absolute;  cursor1:wait;left:350px;top:200px;width:auto;height:16px;padding:8px 5px 10px 30px;background:#fff url(${contextPath}/images/ajax-loading.gif) no-repeat scroll 5px 10px;border:2px solid #ccc;color:#000;">  
		正在生成数据，请耐心等待 . . .   
	</div>
</div>
<div class="xt_main_right_center">
<form action="importTreaty.do" onSubmit="return checkSubmit();"  name="from1" method="post" enctype="multipart/form-data">
<input type="hidden" name="redirectUrl" value='<s:property value='redirectUrl'/>'/>
 <table width="100%" border="0" align="center">
   <tr>
     <td width="43%" align="right"><font  color="red" size="2">* </font>选择金融机构</td>
     <td width="36%"><select dataType="Require" msg="请选择金融机构 "   name="financialId" id="select2">
       <option value="">*****请选择*****</option>
       <s:iterator value="listFinancials" status="i" id="f">
         <option value="${f.id }">${f.name }</option>
       </s:iterator>
     </select></td>
     <td width="21%">&nbsp;</td>
   </tr>
   <tr>
     <td align="right"><font  color="red" size="2">* </font>选择文件</td>
     <td><input type="file" name="file" id="file"  dataType="Require" msg="请选择文件 " ></td>
     <td>&nbsp;</td>
   </tr>
   <tr>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td><input type="submit"  class="btn_import"  value="">&nbsp;&nbsp;<a href="${contextPath}/excel/treaty.xls">模板下载</a></td>
   </tr>
   <tr>
     <td colspan="3">  <s:actionerror /> </td>
    </tr>
 </table>
</form>
</div>
<script language='javascript'>
function checkSubmit(){
 	var staffForm = document.from1;
	if(!Validator.Validate(staffForm, 3)) {
		return false;
	}
	showLoading();
	return true;
 }
function showLoading(){
	var height = window.screen.height-250;   
	 var width = window.screen.width;   
	 var leftW = 300;   
	 if(width>1200){   
	    leftW = 500;   
	 }else if(width>1000){   
	    leftW = 350;   
	 }else { 
	    leftW = 100;   
	 } 
	 $("#loading").css("height",height);
     $("#loading2").css("left",leftW);
     $("#loading").show();
}
$(document).ready(function () {
	$("#loading").hide();
});
</script>
<br/><br/><br/><br/><br/>
		<div><jsp:include page="/include/footer.inc"></jsp:include></div>
</body>
</html>